package com.wtwd.campus.attendancesend;

import com.wtwd.campus.common.Constants;
import com.wtwd.campus.entity.MqMessage;

public class AttendanceSenderFactory {
    public static AttendanceSender createSender(MqMessage mm) {
        AttendanceSender sender = null;
        if (Constants.TIME_CHECK.equals(mm.getType())) {
            return new TimeAdjustingSender();
        }else if(Constants.SEND_DATA.equals(mm.getType())){
            return new AttendanceSendDataReplySender();
        }
        return sender;
    }
}
